<div class="main-content">
    <div class="breadcrumbs" id="breadcrumbs">
        <script type="text/javascript">
          try{ace.settings.check('breadcrumbs' , 'fixed')}catch(e){}
        </script>
        <ul class="breadcrumb">
            <li>
                <a href="{:U('admin/index/main')}">首页</a>
            </li>
            <li class="active">个人信息</li>
        </ul><!-- .breadcrumb -->
</div>

    <div class="table_con">

        <form method="post"  action="{:U('add/add_goods')}" onsubmit="" id='subform' enctype="multipart/form-data">
        <table>
            <tr>
                <td width="10%">商品名：</td>
                <td ><input name="name" type="text" value="{$data['name']}"></td>
            </tr>
            <tr>
                <td>图片：</td>
                 <td >
                    <img width='100px' height='100px'src="/Uploads/{$data['picture_url']}"><br/>
                        <input type="file" name="photo" />
                </td>
            </tr>

            <tr>
                <td>标题：</td>
                <td >
                    <input name="headline" type="text" value="{$data['headline']}">
                </td>
            </tr>
            <tr>
                <td>配置信息：</td>
                <td>
                   <input name="conf_infor" type="text" value="{$data['conf_infor']}">
                 </td>
            </tr>
            <tr>
                <td>收费方式：</td>
                <td >
                    
                </td>
            </tr> 
            <tr>
                <td >简介：</td> 
                <td >
                  <input name="abstract" type="text" value="{$data['abstract']}">
                </td>
            </tr> 
            <tr>
                <td >配送费：</td> 
                <td >
                  <input name="ps_price" type="text" value="{$data['asd']}">
                </td>
            </tr> 

  
<tr><td><input type="submit" value="提交"  onclick="return check(this.form)"
  style=" border:none;background-color:#0066FF; color:#ffffff; width:100px; text-align:center; height:40px; line-height:37px;" /></td></tr>


   </table>
        </form>
       
     
    </div>
</div><!-- /.main-content -->

<script type="text/javascript">
         function check(form) {
         

          if(form.name.value=='') {
                alert("请输入商品名!");
                form.name.focus();
                return false;
            }
          if(form.headline.value==''){
                alert("请输入标题!");
                form.headline.focus();
                return false;
         }
         if(form.conf_infor.value==''){
                alert("请输入配置信息!");
                form.conf_infor.focus();
                return false;
         }
         if(form.abstract.value==''){
                alert("请输入简介!");
                form.abstract.focus();
                return false;
         }
         
         return true;
         }
</script>






